/* 属性面板基础样式 */
.bpp-properties-panel {
  padding: 0;
  font-family: 'Arial', sans-serif;
  font-size: 12px;
  color: #444;
}

/* 分组标题 */
[data-group-id] > .group-label {
  padding: 12px 15px;
  font-size: 13px;
  font-weight: bold;
  background-color: #fafafa;
  border-bottom: 1px solid #ddd;
  color: #333;
}

/* 分组内容 */
[data-group-id] > .group-content {
  padding: 15px;
}

/* 表单项容器 */
.bpp-properties-entry {
  margin-bottom: 12px;
}

/* 标签样式 */
.bpp-properties-entry label {
  display: block;
  margin-bottom: 6px;
  font-weight: normal;
  color: #666;
  font-size: 12px;
}

/* 输入框样式 */
.bpp-properties-entry input[type="text"],
.bpp-properties-entry input[type="number"],
.bpp-properties-entry textarea,
.bpp-properties-entry select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  background-color: white;
  font-size: 12px;
  color: #333;
}

/* 输入框焦点状态 */
.bpp-properties-entry input:focus,
.bpp-properties-entry textarea:focus,
.bpp-properties-entry select:focus {
  outline: none;
  border-color: #409eff;
}

/* 下拉框样式 */
.bpp-properties-entry select {
  height: 30px;
}

/* 复选框容器 */
.bpp-properties-entry .bpp-checkbox {
  margin-top: 6px;
}

/* 复选框标签 */
.bpp-properties-entry .bpp-checkbox label {
  display: inline;
  vertical-align: middle;
  margin-left: 6px;
}

/* 描述文本 */
.bpp-properties-entry .description {
  margin-top: 6px;
  color: #909399;
  font-size: 12px;
}

/* 分组之间的间距 */
.bpp-properties-group {
  margin-bottom: 15px;
  background-color: white;
  border-bottom: 1px solid #ddd;
}

/* 选项卡样式 */
.bpp-properties-tab-bar {
  padding: 0 15px;
  background-color: #fafafa;
  border-bottom: 1px solid #ddd;
}

.bpp-properties-tab-switcher {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.bpp-properties-tab-switcher .bpp-active {
  border-bottom: 2px solid #409eff;
  color: #409eff;
}

.bpp-properties-tab-switcher li {
  padding: 8px 15px;
  cursor: pointer;
  font-size: 13px;
}

/* 按钮样式 */
[data-action] {
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  background-color: white;
  color: #606266;
  cursor: pointer;
}

[data-action]:hover {
  color: #409eff;
  border-color: #c6e2ff;
  background-color: #ecf5ff;
}

/* 错误状态 */
.bpp-error input,
.bpp-error select,
.bpp-error textarea {
  border-color: #f56c6c;
}

.bpp-error-message {
  color: #f56c6c;
  font-size: 12px;
  margin-top: 4px;
}

/* 只读状态 */
.bpp-properties-entry.bpp-readonly label {
  color: #909399;
}

.bpp-properties-entry.bpp-readonly input,
.bpp-properties-entry.bpp-readonly textarea,
.bpp-properties-entry.bpp-readonly select {
  background-color: #f5f7fa;
  border-color: #e4e7ed;
  color: #909399;
  cursor: not-allowed;
}

/* 表格样式 */
.bpp-properties-entry table {
  width: 100%;
  border-collapse: collapse;
}

.bpp-properties-entry table td,
.bpp-properties-entry table th {
  padding: 6px;
  border: 1px solid #ddd;
  font-size: 12px;
}

.bpp-properties-entry table th {
  font-weight: bold;
  background-color: #fafafa;
  text-align: left;
}

/* 移除 bpmn.io 的水印 */
.bjs-powered-by {
  display: none;
}

/* 修复一些特定元素的样式 */
[data-entry="id"] input {
  color: #666;
  font-family: monospace;
}

.bpp-textfield .clear-button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: #c0c4cc;
  cursor: pointer;
  font-size: 14px;
  display: none;
}

.bpp-textfield:hover .clear-button {
  display: block;
} 